/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ws;

import dao.RemoteAuthentification;
import javax.ejb.EJB;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import model.Compte;

/**
 *
 * @author Jawad
 */
@WebService
public class WebServiceAuthentification {

    @EJB
    RemoteAuthentification authentification;

    @WebMethod(operationName = "authentifier")
    public boolean authentifier(@WebParam(name = "login") String login, @WebParam(name = "password") String password) {
        return authentification.authentifier(login, password);
    }

    @WebMethod(operationName = "getcompte")
    public Compte getCompte(@WebParam(name = "numcompte") Long numCompte) {
        return authentification.getCompte(numCompte);
    }
}
